package com.bykj.property.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.bykj.property.controller.vo.request.WasteBinRecordPageRequest;
import com.bykj.property.model.WasteBinRecord;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.mapping.FetchType;

/**
* <p>
    * 垃圾箱处理记录表 Mapper 接口
    * </p>
*
* @author liangyiming
* @since 2019-07-01
*/
public interface WasteBinRecordMapper extends BaseMapper<WasteBinRecord> {

    @Select("select  * from waste_bin_record ")
                @Results({ @Result(property = "wasteBinId",column = "waste_bin_id"),
                        @Result(property = "wasteBin",column = "waste_bin_id",one = @One(select = "com.bykj.property.mapper.WasteBinMapper.selectById"))
    })
    Page<WasteBinRecord> queryPage(WasteBinRecordPageRequest pageRequest);

}